<?php

namespace app\common\model;

use think\Model;
use traits\model\SoftDelete;

class Bed extends Model
{
    // 连接数据库名称
    protected $connection = 'db3';
    // 表名
    protected $name = 'dormitory_dorm_bed';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'created_at';
    protected $updateTime = false;

    const XIANZHI = 1;
    const ZAIYONG = 2;

    public static $statusList = [
        '1' => '闲置',
        '2' => '在用',
    ];
}
